package com.sz.bean;

import com.sz.util.Tool;

/**
 * @框架文件
 */
public class YijiaBeanConfig {

	private static YijiaBean bean;

	private YijiaBeanConfig() {

	}

	public static YijiaBean getBean() {

		if (bean == null) {
			initBean();
		}

		return bean;
	}

	private static YijiaBean initBean() {

		bean = new YijiaBean();
		readConfig(bean);

		return bean;
	}

	private static void readConfig(YijiaBean bean) {
		String dirPath = SysiniConfig.class.getResource("/").getPath();
		Tool.initProperties(dirPath + "yijia.properties", bean);
	}
}
